﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using jTCodeGenerate.Command;

namespace jTCodeGenerate.UserForms
{
    public partial class AddSolutionForm : Form
    {
        public AddSolutionForm()
        {
            InitializeComponent();
        }

        private void btn_save_Click(object sender, EventArgs e)
        {
            var name = this.txt_sol_name.Text;
            var remark = this.txt_sol_remark.Text;

            SQLCommand.AddSolution(new Models.SolutionModel
            {
                Name = name,
                Remark = remark
            });
            this.Close();
        }

        private void btn_close_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
